import { _Flex } from "./Flex";
import { FlexDirection, IRowAttributes, VerticalAlign } from "./common";

class _Row extends _Flex {
    constructor(configuration?: IRowAttributes) {
        super({
            direction: FlexDirection.Row,
            space: configuration?.space,
        });
    }

    alignItems(value: VerticalAlign): this {
        this._element.style.alignItems = value;
        return this;
    }
}

export function Row(configuration?: IRowAttributes) {
    return new _Row(configuration);
}